Setlocal
Set Configuration=%3%
Set Platform=%2%
Set Type=%1%

if %Configuration%=="" or %Platform%==""(
   call "%VS100COMNTOOLS%VCVarsQueryRegistry.bat" 32bit
   call "%FrameworkDIR32%\%FrameworkVersion32%\MSBuild.exe" /t:%Type% /p:Configuration=%Configuration% /p:Platform=%Platform% /fileLogger /fileLoggerParameters:LogFile=%Type%%Platform%%Configuration%.log

   if not "%errorlevel%" == "0" (
      Compilation failed
      pause
   )
